using System;
using System.Collections.Generic;
using System.Text;
using MotionBlur.Butler.Model;

namespace MotionBlur.Butler.Triggers
{
    
    public abstract class ScheduledTrigger : DutyTrigger
    {

        private DateTime _StartBy;
        private DateTime? _EndBy;
        
        public DateTime StartBy
        {
            get { return _StartBy; }
            set { _StartBy = value; }
        }

        public DateTime? EndBy
        {
            get { return _EndBy; }
            set { _EndBy = value; }
        }

        internal abstract TimeSpan? GetSpanToNextOccurence(DateTime now);

    }

}
